<template>
    <el-form ref="form" :model="form" label-width="80px" style="height: 400px;overflow:auto;">
        <el-form-item label="单位名称">
            <el-input v-model="form.name"></el-input>
        </el-form-item>
        <el-form-item label="日期">
            <el-col :span="11">
                <el-date-picker type="date" placeholder="选择日期" v-model="form.date1" style="width: 100%;"></el-date-picker>
            </el-col>

        </el-form-item>

   

        <el-upload class="upload-demo" ref="upload" action="https://jsonplaceholder.typicode.com/posts/"
             :auto-upload="false">
            <el-button slot="trigger" size="small" type="primary">选取封面图片文件</el-button>
        
            <div slot="tip" class="el-upload__tip">只能上传jpg/png文件，且不超过500kb</div>
        </el-upload>

        <el-form-item>

            <el-button type="primary" @click="onSubmit">创建模版</el-button>
            <el-button>取消</el-button>
        </el-form-item>
    </el-form>
</template>
<script>
export default {
    data() {
        return {
            pageOnePageData:
            {
                enterpriseName: "圣邦集团",
                enterpriseImage: "18100000000",
                programTime: "2023年07月"
            },
            form: {
                name: '',
                region: '',
                date1: '',
                date2: '',
                delivery: false,
                type: [],
                resource: '',
                desc: ''
            }
        }
    },
    name: "pptOnePage",
    methods: {
        onSubmit() {
            console.log('submit!');
        }
    }
}
</script>
<style></style>